from rest_framework import serializers
from .exerciese_models import ExerciseHistory, ExerciseContent


class ExerciseContentSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ExerciseContent
        fields = ['exerciseContent', 'optionA', 'optionB', 'optionC', 'optionD', 'exerciseAnswer']


class ExerciseHistorySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ExerciseHistory
        fields = ('userId', 'exerciseContent', 'userChosen', 'exerciseAnswer')
